<?php
header("Access-Control-Allow-Origin: *");
class MobileAction extends CommonAction {

    /**
     * 首页
     * @return void
     */
    public function index(){
        //搜索类型，可选项有:0智能,1商标名,2注册号,3申请人
        $textType = $this->_get('st','intval',0);
        //搜索模式 可选项有: 0至少包含一个字 1.开头包含 3.包含全部 4.精准匹配 默认是3
        $searchMode = $this->_get('sm','intval',3);
        //搜索内容
        $text = $this->_get('k','trim');
        //同名多类
        $md = $this->_get('md','trim');
        //
        //默认搜索参数
        $this->assign('initSearcher',json_encode(['textType'=>$textType,'searchMode'=>$searchMode,'text'=>$text, 'md' =>$md, 'sqNum'=>'1-90']));
        $this->assign('initCategory',json_encode($this->getCategory()));
        $this->assign('md',$md);
        $this->display('Mobile:index');
    }

    public function brander_user(){
        $this->display('Mobile:brander_user');
    }

}